package com.ruoyi.hospital.service.operation.impl;

import java.util.List;
import com.ruoyi.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.hospital.mapper.operation.OperationMeetingMapper;
import com.ruoyi.hospital.domain.operation.OperationMeeting;
import com.ruoyi.hospital.service.operation.IOperationMeetingService;

/**
 * 会议管理Service业务层处理
 * 
 * @author wendao
 * @date 2024-09-13
 */
@Service
public class OperationMeetingServiceImpl implements IOperationMeetingService 
{
    @Autowired
    private OperationMeetingMapper operationMeetingMapper;

    /**
     * 查询会议管理
     * 
     * @param id 会议管理主键
     * @return 会议管理
     */
    @Override
    public OperationMeeting selectOperationMeetingById(Integer id)
    {
        return operationMeetingMapper.selectOperationMeetingById(id);
    }

    /**
     * 查询会议管理列表
     * 
     * @param operationMeeting 会议管理
     * @return 会议管理
     */
    @Override
    public List<OperationMeeting> selectOperationMeetingList(OperationMeeting operationMeeting)
    {
        return operationMeetingMapper.selectOperationMeetingList(operationMeeting);
    }

    /**
     * 新增会议管理
     * 
     * @param operationMeeting 会议管理
     * @return 结果
     */
    @Override
    public int insertOperationMeeting(OperationMeeting operationMeeting)
    {
        operationMeeting.setCreateTime(DateUtils.getNowTimeSecond());
        return operationMeetingMapper.insertOperationMeeting(operationMeeting);
    }

    /**
     * 修改会议管理
     * 
     * @param operationMeeting 会议管理
     * @return 结果
     */
    @Override
    public int updateOperationMeeting(OperationMeeting operationMeeting)
    {
        operationMeeting.setUpdateTime(DateUtils.getNowTimeSecond());
        return operationMeetingMapper.updateOperationMeeting(operationMeeting);
    }

    /**
     * 批量删除会议管理
     * 
     * @param ids 需要删除的会议管理主键
     * @return 结果
     */
    @Override
    public int deleteOperationMeetingByIds(Integer[] ids)
    {
        return operationMeetingMapper.deleteOperationMeetingByIds(ids);
    }

    /**
     * 删除会议管理信息
     * 
     * @param id 会议管理主键
     * @return 结果
     */
    @Override
    public int deleteOperationMeetingById(Integer id)
    {
        return operationMeetingMapper.deleteOperationMeetingById(id);
    }
}
